package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 居民信息管理对象 cm_user_info
 * 
 * @author pop404NotFound
 * @date 2021-11-24
 */
public class CmUserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String avatarUrl;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realname;

    /** 业主编号 */
    @Excel(name = "业主编号")
    private String owId;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idcard;

    /** 上次登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginDate;

    /** 账号状态 */
    @Excel(name = "账号状态")
    private Integer Status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }
    public void setOwId(String owId) 
    {
        this.owId = owId;
    }

    public String getOwId() 
    {
        return owId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setIdcard(String idcard) 
    {
        this.idcard = idcard;
    }

    public String getIdcard() 
    {
        return idcard;
    }
    public void setLoginDate(Date loginDate) 
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate() 
    {
        return loginDate;
    }
    public void setStatus(Integer Status) 
    {
        this.Status = Status;
    }

    public Integer getStatus() 
    {
        return Status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nickname", getNickname())
            .append("avatarUrl", getAvatarUrl())
            .append("openid", getOpenid())
            .append("realname", getRealname())
            .append("owId", getOwId())
            .append("phone", getPhone())
            .append("idcard", getIdcard())
            .append("loginDate", getLoginDate())
            .append("Status", getStatus())
            .toString();
    }
}
